package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel
public class SetProductReadPasswordDTO {

    @NotNull(message = "是否需要设置阅读密码字段不能为空：1,需要;0,不需要")
    @ApiModelProperty(value = "是否需要设置阅读密码：1,需要;0,不需要")
    private Integer isReadPassword;

    @NotBlank(message = "阅读密码不可以为空")
    @Length(min = 1, max = 100, message = "阅读密码长度需要在1-100个字之间")
    @ApiModelProperty(value = "阅读密码不可以为空")
    private String readPassword;

    public SetProductReadPasswordDTO() {
    }

    public Integer getIsReadPassword() {
        return isReadPassword;
    }

    public void setIsReadPassword(Integer isReadPassword) {
        this.isReadPassword = isReadPassword;
    }

    public String getReadPassword() {
        return readPassword;
    }

    public void setReadPassword(String readPassword) {
        this.readPassword = readPassword;
    }
}
